<%#
# This takes in a cookbook_recipe object
%>

<% @recipe = Recipe.find_by_id(recipe_row.recipe_id)%>

<tr>
  <td><%= @recipe.title  %></td>
  <td><%= @recipe.description  %></td>
  <td><%= link_to "view", :controller =>"recipe", :action=>"view", :id=>@recipe %></td>
  <td>
    <%# AJAX Call for remove from cookbook %>
      <% form_remote_tag :url => {:action => "remove_recipe_from_cookbook", :cookbook_recipe_id => recipe_row} do %>
        <%= submit_tag "Remove From Cookbook" %>
      <% end %>
  </td>

</tr>
